<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        window.onload=function () {
            fetch("hi").then(function(response) {
                return response.text().then(function(text) {
                    document.querySelector('div').innerHTML = text;
                });
            });

        }
    </script>
</head>
<body>
<h1>看不到我</h1>
<div id="d"></div>
</body>
</html>